package com.hyy.backend.entity;

import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;

@Data
public class Knowledge {
    private Integer knowledgeId;
    private String title;
    private String content;
    private Integer userId;
    private Integer typeId;
    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;
    private String likedBy;
    private Integer views;
    private Integer likes;
    private Boolean isDeleted;
    private Boolean isRecommend;
    private Boolean isTop;
    private KnowledgePostStatus status;
    // 新增字段：帖子类型（普通帖子/问答帖子）
    private KnowledgePostType postType;
    private Integer commentCount;
}
